package org.stone.project.tx.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息
 */
@Data
public class Message implements Serializable {
    public Message() {
        createTime = new Date();
    }

    private Long id;

    /**
     * {@link org.stone.project.tx.sysEnum.TxType}
     * 消息种类
     */
    private Integer messageType;

    /**
     * 接受方
     */
    private String receiveId;

    /**
     * 接受类型
     * {@link org.stone.project.tx.sysEnum.ReceiveType}
     */
    private Integer receiveType;

    /**
     * 消息类型
     * {@link org.stone.project.tx.sysEnum.MsgType}
     */
    private Integer contentType;

    /**
     * 消息内容
     */
    private String content;

    /*
    * 创建时间
    * */
    private Date createTime;
}